package edu.nf.api.controller.rider;

import edu.nf.api.controller.BaseController;
import edu.nf.waimai.dao.rider.impl.RiderDAOImpl;
import edu.nf.waimai.model.rider.Rider;
import org.nf.web.annotation.RequestMapping;
import org.nf.web.annotation.RequestParam;

/**
 * @Date 2023-09-05
 * @Author qiu
 * 骑手的个人中心
 */
public class CenterRiderController extends BaseController {

    @RequestMapping("/center")
    public Rider centerRider(@RequestParam("phone") String phone) {
        Rider rider = new RiderDAOImpl().centerRider(phone);

        return rider;

    }

}
